//
//  ModifyTableViewCell.m
//  Daybook
//
//  Created by liutaifeng on 16/5/26.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "ModifyTableViewCell.h"

@interface ModifyTableViewCell ()
@property (nonatomic, strong) UILabel *titleLabel;
@end

@implementation ModifyTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)createView {
    self.picImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:_picImageView];
    
    self.titleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_titleLabel];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _picImageView.frame = CGRectMake(self.contentView.frame.size.width - 70, 5, 50, self.contentView.frame.size.height - 10);
    _titleLabel.frame = CGRectMake(10, 10, 100, self.contentView.frame.size.height - 20);
    _titleLabel.text = @"账本封面";
}
- (void)setPicImageView:(UIImageView *)picImageView {
    if (_picImageView != picImageView) {
        _picImageView = picImageView;
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
